<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{ 
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
	
  </script>
  <div class="h"><a href="{:U('index')}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回站点列表</a>
 
 </div>
    <form class="checkoutform form-horizontal" action="{:U('insert')}" method="post">
    
    
    
    
    
    
    
    
    
    

    
    
    
    
   <div class="container"> <div class="form-group">
      <label class="col-sm-2 control-label">显示风格</label>
      <div class="col-sm-10">
        <!-- <label class="checkbox-inline" onClick="showPagesBox(this);">
          <img src="<notempty name="info['page_header_img']">__PUBLIC__{$info.page_header_img}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>
          [首页头部风格]<input type="hidden" name="page_header_id" value="{$info.page_header_id}"><input type="hidden" name="page_header_img" value="{$info.page_header_img}"></label>
         -->
         
         
         
         <label class="checkbox-inline" onClick="showPagesBox(this);">
         <img src="<notempty name="info['page_img']">{:getThumbPath($info['page_img'])}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>

         [首页主体风格]<input type="hidden" name="page_id" value="{$info.page_id}">
         <input type="hidden" name="page_img" value="{$info.page_img}">
         </label>
         
         
         
          
          
          
          
          <!--<label class="checkbox-inline" onClick="showPagesBox(this);">
          <img src="<notempty name="info['page_footer_img']">__PUBLIC__{$info.page_footer_img}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>
          [首页底部风格]<input type="hidden" name="page_footer_id" value="{$info.page_footer_id}"><input type="hidden" name="page_footer_img" value="{$info.page_footer_img}"></label>-->
          
          
          
          
          
      </div>
   </div>
    
    
    
    <div class="form-group">
      <label class="col-sm-2 control-label">语言</label>
      <div class="col-sm-10">
         <select class="form-control" name="lang_id">
        <option value="0">请选择语言</option>
          <volist name="LangList" id="vo">
            <option <eq name="vo['id']" value="$info['lang_id']">selected="selected"</eq> value="{$vo.id}">{$vo.lang}</option>
            </volist>
          </select>
      </div>
   </div>
   
   
   <div class="form-group">
      <label class="col-sm-2 control-label">会员中心风格</label>
      <div class="col-sm-10">
         <select class="form-control" name="MEMBERDEFAULT_THEME">
        <option value="0">请选择风格</option>
          <volist name="MEMBERDEFAULT_THEME" id="vo">
            <option <eq name="vo" value="$info['MEMBERDEFAULT_THEME']">selected="selected"</eq> value="{$vo}">{$vo}</option>
            </volist>
          </select>
      </div>
   </div>
   
   
    <div class="form-group">
      <label class="col-sm-2 control-label">备注</label>
      <div class="col-sm-10">
         <textarea class="form-control" name="remark" cols="100%" rows="5" id="remark">{$info.remark}</textarea>
      </div>
   </div>
    
    <div class="form-group">
      <label class="col-sm-2 control-label">网站名称</label>
      <div class="col-sm-10">
         <input class="form-control" datatype="*" value="{$info.title}" name="title" type="text" placeholder="网站名称">
      </div>
   </div>
    
    <div class="form-group">
      <label class="col-sm-2 control-label">域名</label>
      <div class="col-sm-10">
         <input class="form-control" value="{$info.domain}" name="domain" type="text" placeholder="域名">
      </div>
   </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">移动端链接</label>
      <div class="col-sm-10">
         <input class="form-control" value="{$info.mobileUrl}" name="mobileUrl" type="text" placeholder="移动端链接">
      </div>
   </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">数据关联到网站(与其它网站同步数据)</label>
      <div class="col-sm-10"><select id="toSite" class="form-control" name="relate_id" style="width:80%">
        <option value="0">使用其它网站的数据</option>
          <volist name="mySiteList" id="vo">
            <option <eq name="vo['id']" value="$info['relate_id']">selected="selected"</eq> value="{$vo.id}">{$vo.title}</option>
            </volist>
          </select>
         <label id="sync">一键同步</label>
         
      </div>
   </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">到期时间</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" onclick="WdatePicker();" name="timeout" id="timeout" value="{:date('Y-m-d',$info['timeout'])}" />
      </div>
   </div>
   
   
   <div class="form-group">
      <label class="col-sm-2 control-label">文章扩展项</label>
      <div class="col-sm-10">
        <textarea class="form-control" type="text" name="extendsField">{$info['extendsField']}</textarea>
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">产品扩展项</label>
      <div class="col-sm-10">
         <textarea class="form-control" type="text" name="productExtendsField">{$info['productExtendsField']}</textarea>
      </div>
   </div>
   
      <div class="pages"><button type="submit" class="btn btn-success">保存</button></div></div>
    </form>
    

  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />